<div id="content">
  <div class="container-fluid"><hr>
    <div class="row-fluid">
      <div class="span12">
        <div class="widget-box">
          <div class="widget-title"> <span class="icon"> <i class="icon-info-sign"></i> </span>
            <h5>商品的添加</h5>
          </div>
          <div class="widget-content nopadding">
            <form class="form-horizontal" method="post" action="{:U('Goods/addGoods')}" name="basic_validate" id="basic_validate" novalidate="novalidate" enctype="multipart/form-data">
                <div class="control-group">
                    <label class="control-label">选择栏目</label>
                    <div class="controls">
                        <select name="cate_id" class="span3">
                            <volist name="cate" id="vo">
                                <option value="{$vo.id}">{$vo.name}</option>
                            </volist>
                        </select>
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label">商品编号</label>
                    <div class="controls">
                        <input type="text" name="goods_sn" id="goods_sn">
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label">商品名称</label>
                    <div class="controls">
                        <input type="text" name="name" id="name">
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label">库存</label>
                    <div class="controls">
                        <input type="text" name="number" id="number">
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label">重量</label>
                    <div class="controls">
                        <input type="text" name="weight" id="weight">
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label">市场价</label>
                    <div class="controls">
                        <input type="text" name="market_price" id="market_price">
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label">本店售价</label>
                    <div class="controls">
                        <input type="text" name="shop_price" id="shop_price">
                    </div>
                </div>
                <div class="control-group" style="border:1px solid #000;">
                    <label class="control-label">微信支付优惠设置</label>
                    <div class="controls">
                        <label>
                            <input type="radio" name="is_promote" value="0" checked="true"> 否
                        </label>
                        <label>
                            <input type="radio" name="is_promote" value="1"> 是
                        </label>

                    </div>
                    <label class="control-label">微信支付 优惠的价格<font style="color:red; font-weight: bold;">(填写优惠的价格，不是优惠后的价格)</font></label>
                    <div class="controls">
                        <input type="text" name="promote_price" id="promote_price">
                    </div>
                    <label class="control-label">起始时间 / 结束时间</label>
                    <div class="controls">
                        <input readonly="readonly"  type="text" name="promote_start_date" id="promote_start_date"  data-date-format="mm-dd-yyyy" class="datepicker span2" >
                        <input readonly="readonly"  type="text" name="promote_end_date" id="promote_end_date"  data-date-format="mm-dd-yyyy" class="datepicker span2" >
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label">商品报警数量</label>
                    <div class="controls">
                        <input type="text" name="warn_number" id="warn_number">
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label">简述</label>
                    <div class="controls">
                        <input type="text" name="brief" id="brief" class="span10">
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label">详细描述</label>
                    <div class="controls">
                        <script id="editor" name="desc" type="text/plain" style="width:1024px;height:500px;">
                        </script>
                    </div>
                </div>
                <script type="text/javascript" charset="utf-8" src="__PUBLIC__ueditorFull/ueditor.config.js"></script>
                <script type="text/javascript" charset="utf-8" src="__PUBLIC__ueditorFull/ueditor.all.min.js"> </script>
                <script type="text/javascript">
                    //实例化编辑器
                    //建议使用工厂方法getEditor创建和引用编辑器实例，如果在某个闭包下引用该编辑器，直接调用UE.getEditor('editor')就能拿到相关的实例
                    var ue = UE.getEditor('editor');
                </script>
                <div class="control-group">
                    <label class="control-label">缩略图</label>
                    <div class="controls">
                        <input type="file" name="thumb" id="thumb">
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label">图片</label>
                    <div class="controls">
                        <input type="file" name="img" id="img">
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label">精品</label>
                    <div class="controls">
                        <label>
                            <input type="radio" name="is_best" value="0" checked="true"> 否
                        </label>
                        <label>
                            <input type="radio" name="is_best" value="1"> 是
                        </label>
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label">新品</label>
                    <div class="controls">
                        <label>
                            <input type="radio" name="is_new" value="0" checked="true"> 否
                        </label>
                        <label>
                            <input type="radio" name="is_new" value="1"> 是
                        </label>
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label">热销</label>
                    <div class="controls">
                        <label>
                            <input type="radio" name="is_hot" value="0" checked="true"> 否
                        </label>
                        <label>
                            <input type="radio" name="is_hot" value="1"> 是
                        </label>
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label">备注/商家备注</label>
                    <div class="controls">
                        <input type="text" class="span10" name="seller_note" id="seller_note">
                    </div>
                </div>
              <div class="form-actions">
                <input type="submit" value="submit" class="btn btn-success">
              </div>
            </form>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>

